#ifndef __CYCLE_QUEUE_H__
#define __CYCLE_QUEUE_H__

#include "typedef.h"

struct CycleQueue;

struct CycleQueue *cycle_queue_init(int32_t len);
int32_t cycle_queue_length(struct CycleQueue *q);
void cycle_queue_push(struct CycleQueue *q, uint8_t ch);
int32_t cycle_queue_pop(struct CycleQueue *q, uint8_t *ch);
int32_t cycle_queue_destroy(struct CycleQueue *q);

#endif
